package com.pubinfo.passbook.common.service.master;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.pubinfo.passbook.common.entity.TSystemMenu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pubinfo.passbook.common.model.dto.system.MenuParam;
import com.pubinfo.passbook.common.model.vo.base.JsonResult;

import java.util.List;

/**
 *
 */
public interface TSystemMenuService extends IService<TSystemMenu> {
  IPage<TSystemMenu> selectSystemMenu(MenuParam param);
  
  JsonResult<String> saveSystemMenu(TSystemMenu menu);
  
  JsonResult<String> removeSystemMenu(Integer menuId);
  
  JsonResult<String> updateSystemMenu(TSystemMenu menu);
  
  //获取菜单及其子节点
  List<TSystemMenu> selectMenuTree(Integer menuId);
  
}
